package com.itheima.demo.runnable;

public class MyRunnable implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {//用Thread.currentThread获取当前线程,再获取线程名字
            System.out.println(Thread.currentThread().getName()+"Runnable线程方法"+i);
        }
    }
}
